package corestruct

type HttpSession struct {
	Id         int64       `json:"id,string"                         gorm:"column:id;comment:主键;"`
	Token      string      `json:"token"        validate:"required,max=50"gorm:"column:token;size:50;comment:Token;"`
	Name       string      `json:"name"         validate:"required,max=50"gorm:"column:name;size:50;comment:姓名;"`
	HtdeptId   int64       `json:"htdeptId,string"                    gorm:"column:htdept_id;comment:机构编码;"`
	HtdeptName string      `json:"htdeptName"   validate:"max=100"  gorm:"column:htdept_name;size:100;comment:机构名称;"`
	HtroleData string      `json:"-"   validate:"max=200"  gorm:"column:htrole_data;size:200;comment:角色数据;memo:BaseDto 数组,json格式;"`
	Htroles    []IdNameDto `json:"htroles"                          gorm:"-;comment:HTRoles;"`
	Loginway   string      `json:"loginway"     validate:"max=10"   gorm:"column:loginway;size:10;comment:登录方式;memo:Appver、IMSI;"`
	HtplatId   int64       `json:"htplatId,string"                    gorm:"column:htplat_id;comment:平台编号;"`
	CrtUid     int64       `json:"crtUid,string"                    gorm:"column:crt_uid;comment:用户编号;"`

	Debug bool `json:"debug"                            gorm:"column:debug;comment:是否调试;"`
}

func (p HttpSession) TableName() string {
	return "htuserlogin"
}
